import { lazy } from "react";
const Home=lazy(()=>import('../page/Home/index'))
const Message=lazy(()=>import('../page/Message/index'))
const Order=lazy(()=>import('../page/Order/index'))
const My=lazy(()=>import('../page/My/index'))
const Mainpayout=lazy(()=>import('../page/Mainpayout/index'))
const Login=lazy(()=>import('../page/Login/index'))
const List=lazy(()=>import('../page/List/index'))
const Xiangqing=lazy(()=>import('../page/Xiangqing/index'))
const Paylist=lazy(()=>import('../page/Paylist/index'))
const OrderDel=lazy(()=>import('../page/OrderDel/index'))
const Success=lazy(()=>import('../page/Success/index'))

import { FriendsO, HomeO, Search, SettingO } from '@react-vant/icons'
export const Zi=[
    {
        path:'/',
        element:<Home></Home>,
        title:'首页',
        icon:<FriendsO />,
    } ,
    {
        path:'/message',
        element:<Message></Message>,
        title:'信息',
        icon:<HomeO />,
    } ,
    {
        path:'/order',
        element:<Order></Order>,
        title:'订单',
        icon:<Search />,
    } ,
    {
        path:'/my',
        element:<My></My>,
        title:'我的',
        icon:<SettingO />,
    } ,
]
const routes=[
    {
        path:'/',
        element:<Mainpayout></Mainpayout>,
        children:Zi
    },
     {
        path:'/login',
        element:<Login></Login>,
        
    },
    {
        path:'/list',
        element:<List></List>,
        
    },
    {
        path:'/xiangqing',
        element:<Xiangqing></Xiangqing>,
        
    },
     {
        path:'/paylist',
        element:<Paylist></Paylist>,
        
    },
    {
        path:'/orderDel',
        element:<OrderDel></OrderDel>,
        
    },
     {
        path:'/success',
        element:<Success></Success>,
        
    },
]
export default routes